/**
 * Copyright (C), 2018-2018, 河北东软有限公司
 * FileName: studentEntity
 * Author:   Administrator
 * Date:     2018/4/24 13:47
 * Description: 学生
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package pers.fqq.dlfd.student.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 〈一句话功能简述〉<br>
 * 〈学生〉
 *
 * @author Administrator
 * @create 2018/4/24
 * @since 1.0.0
 */
@Data
@ApiModel
@Entity
@Table(name = "student")
public class StudentEntity {

    @ApiModelProperty("用户id")
    @Id
    private String id;

    @Excel(name = "用户名")
    @ApiModelProperty("用户名")
    private String name;

    @Excel(name = "用户密码")
    @ApiModelProperty("用户密码")
    private String password;

    @Excel(name = "性别", replace = {"男_0", "女_1"}, suffix = "生")
    @ApiModelProperty("性别")
    private String sex;

    public StudentEntity(String id, String name, String password, String sex) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.sex = sex;
    }
//
//    public StudentEntity( String name, String password, String sex) {
//        this.name = name;
//        this.password = password;
//        this.sex = sex;
//    }
//
//    public StudentEntity( String name, String password) {
//        this.name = name;
//        this.password = pass
// word;
//    }
//
    public StudentEntity() {

    }
}